net: designware: Add reset ctrl to driver
authorLey Foon Tan <[email protected]>
Thu, 14 Jun 2018 10:45:23 +0000 (18:45 +0800)
committerTom Rini <[email protected]>
Mon, 9 Jul 2018 19:28:28 +0000 (15:28 -0400)
commit495c70f9dfad1a5428ec84b52e8667ea4760ecd6
tree0dacb38b033e0f52bce37030019020619c9766ba
parentb051eecbda1567f6795c7d127a68dd55573d8fa0
net: designware: Add reset ctrl to driver

Add code to reset all reset signals as in Ethernet DT node. A reset
property is an optional feature, so only print out a warning and do not
fail if a reset property is not present.

If a reset property is discovered, then use it to deassert, thus
bringing the IP out of reset.

Signed-off-by: Ley Foon Tan <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/designware.c